package entity;

import java.io.Serializable;

public class Item implements Serializable {
    private Integer id;

    private String product;

    private Integer num;

    private Integer orderId;

    private static final long serialVersionUID = 1L;

    public Item(Integer id, String product, Integer num, Integer orderId) {
        this.id = id;
        this.product = product;
        this.num = num;
        this.orderId = orderId;
    }

    public Item() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getProduct() {
        return product;
    }

    public void setProduct(String product) {
        this.product = product == null ? null : product.trim();
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }
}